from flask import Flask
from settings import Config, db
from  article_read import article_read
from article_publish import article_publish
from home_page import home_page
from user_center import user_center
app = Flask(__name__, static_folder="static", static_url_path="")
app.secret_key = 'your_secret_key_here'
app.config.from_object(Config)

db.init_app(app)


app.register_blueprint(home_page, url_prefix='/')
app.register_blueprint(article_read, url_prefix='/')
app.register_blueprint(article_publish, url_prefix='/')
app.register_blueprint(user_center, url_prefix='/')
if __name__ == '__main__':
    app.run(debug=True)